//API config

const root = process.env.ROOT;

//本机测试数据
const LocalRoot = 'http://192.168.1.91:8080'

const login = "/login/valid"                                                       //登录

const getAllDepartment = "/oganization/getAllDepartment"                           //查询所有组织
const getGenerateCode = "/oganization/getGenerateCode"                             //自动获取编码
const isDepartmentExist = "/oganization/isDepartmentExist"                         //查询组织是否已存在
const createOganization = "/oganization/createOganization"                         //添加组织架构
const getDepartment = "/oganization/getDepartment"                                 //查询组织详情
const updateDepartment = "/oganization/updateDepartment"                           //修改组织
const deleteDepartment = "/oganization/deleteDepartment"                           //删除组织

const queryUserByDepartment = "/user/queryUserByDepartment"                        //根据部门查询用户
const uploadheadphoto = root + "/user/uploadheadphoto"                            //上传头像
const createUser = "/user/createUser"                                              //添加用户信息
const getAllPermisson = "/user/getAllPermisson"                                    //获取权限列表
const getUserDetail = "/user/getUserDetail"                                        //查询用户详情
const isUserExist = "/user/isUserExist"                                            //查询用户是否存在
const queryUserForPage = "/user/queryUserForPage"                                  //条件分页查询
const updateUser = "/user/updateUser"                                              // 修改用户信息
const updateUserStatus = "/user/updateUserStatus"

const createSort = "/sort/createSort"                                              //添加分类
const createSortProperty = "/sort/createSortProperty"                              //添加分类属性列表
const deletSort = "/sort/deletSort"                                                //删除分类
const deletSortProperty = "/sort/deletSortProperty"                                //删除分类属性
const getSortGenerateCode = "/sort/getGenerateCode"                                //自动获取编码
const getSortDetail = "/sort/getSortDetail"                                        //通过ID查询分类详情
const getSortPropertyDetail = "/sort/getSortPropertyDetail"                        //查询分类属性详情
const getSortPropertyList = "/sort/getSortPropertyList"                            //分页查询分类属性列表
const isSortExist = "/sort/isSortExist"                                            //查询分类名称是否已存在
const queryAllSort = "/sort/queryAllSort"                                          //查询全部分类并分级
const querySortForPage = "/sort/queryForPage"                                      //分类列表分页查询
const updateSort = "/sort/updateSort"                                              //修改分类信息
const updateSortProperty = "/sort/updateSortProperty"                              //修改分类属性列表

const createSupplier = "/supplier/createSupplier"                                   //添加供应商
const deleteSupplier = "/supplier/deleteSupplier"                                   //删除供应商
const getSupplierGenerateCode = "/supplier/getGenerateCode"                         //自动获取编码
const getSupplierDetail = "/supplier/getSupplierDetail"                             //通过ID查询供应商详情
const isSupplierExist = "/supplier/isSupplierExist"                                 //查询供应商名称是否已存在
const querySupplierForPage = "/supplier/queryForPage"                               //分页查询
const updateSupplier = "/supplier/updateSupplier"                                   //修改供应商信息

const createStorage = "/storage/createStorage"                                     //POST添加存储位置
const deleteStorage = "/storage/deleteStorage"                                     //GET删除存储位置
const getStorageGenerateCode = "/storage/getGenerateCode"                          //GET自动获取编码
const getStorageDetail = "/storage/getStorageDetail"                               //GET通过ID查询存储位置详情
const isStorageExist = "/storage/isStorageExist"                                   //GET查询存储位置名称是否已存在
const queryAllStorage = "/storage/queryAllStorage"                                 //GET查询全部存储位置并分级
const queryStorageForPage = "/storage/queryForPage"                                //GET分页查询
const updateStorage = "/storage/updateStorage"                                     //POST修改存储位置信息

const createDevice = "/device/createDevice"                                        //POST添加设备信息
const deleteDevice = "/device/deleteDevice"                                        //GET删除设备信息
const getDeviceDetail = "/device/getDeviceDetail"                                  //GET通过ID查询设备信息详情
const getDeviceGenerateCode = "/device/getGenerateCode"                            //GET自动获取编码
const getDeviceSortPropertyDetail = "/device/getSortPropertyDetail"                //GET查询分类属性详情
const isDeviceExist = "/device/isDeviceExist"                                      //GET查询设备信息名称是否已存在
const queryDeviceForPage = "/device/queryForPage"                                  //GET分页查询
const updateDevice = "/device/updateDevice"                                        //POST修改设备信息信息

const createAssets = "/assets/createAssets"                                        //添加资产信息
const deleteAssets = "/assets/deleteAssets"                                        //删除资产信息
const getAssetsDetail = "/assets/getAssetsDetail"                                  //通过ID查询资产信息详情
const getAssetsGenerateCode = "/assets/getGenerateCode"                            //自动获取编码
const isAssetsExist = "/assets/isAssetsExist"                                      //查询资产信息名称是否已存在
const queryAssetsForPage = "/assets/queryForPage"                                  //添加资产信息
const updateAssets = "/assets/updateAssets"                                        //修改资产信息信息

// 测试数据
const sysUserInfo = LocalRoot + "/static/testdata/userinfo.json"                   //获取系统用户信息
const oneAssetsLog = LocalRoot + "/static/testdata/AssetsLog.json"                 //单个的日志列表
const SupplierData = LocalRoot + "/static/testdata/Supplierdata.json"              //供应商列表
const panelData = LocalRoot + "/static/testdata/panelData.json"                    //统计面板数据


//流程API
const getMyStartFlow = "/flowHistory/getMyStartFlow"                    //GET查询我发起的请求的工作流
const getWaitMeToDo = "/flowHistory/getWaitMeToDo"                      //GET查询待我出来的工作流
const getMyParticipant = "/flowHistory/getMyParticipant"                //GET查询我参与的工作流
const getFlowDetail = "/applyInternet/getFlowDetail"                        //获取工作流表单详情

const completeFlow="/applyInternet/completeFlow"                        //审批入网申请工作流
const createApplyInternet="/applyInternet/createApplyInternet"          //创建入网申请工作流

const queryDefinitionProcess="/activiti/queryDefinitionProcess"          //查询流程定义列表
const queryCreatedProcess = "/activiti/queryCreatedProcess"                 //GET查询创建的流程列表_模型model
const deleteModel = "/activiti/deleteModel"                              //删除流程模型
const deployCreatedProcess = "/activiti/deployCreatedProcess"                       //发布流程模型为定义
const deleteDeployment = "/activiti/deleteDeployment"                       //删除部署流程

const getAllFlowType = "/flowApply/getFlowType"                       //获取所有流程分类
const createFlowForm = "/flowForm/create"                       //添加流程表单
const queryForPageFlowForm = "/flowForm/queryForPage"                       //流程表单分页
const queryDetailFlowForm = "/flowForm/queryDetail"                       //流程表单详情
const updateApplyForm = "/flowForm/updateApplyForm"                       //流程表单详情
export default {
    root,

    login,

    sysUserInfo,
    oneAssetsLog,
    SupplierData,
    panelData,

    getAllDepartment,
    getGenerateCode,
    isDepartmentExist,
    createOganization,
    getDepartment,
    updateDepartment,
    deleteDepartment,

    queryUserByDepartment,
    uploadheadphoto,
    createUser,
    getAllPermisson,
    getUserDetail,
    isUserExist,
    queryUserForPage,
    updateUser,
    updateUserStatus,

    createSort,
    createSortProperty,
    deletSort,
    deletSortProperty,
    getSortGenerateCode,
    getSortDetail,
    getSortPropertyDetail,
    getSortPropertyList,
    isSortExist,
    queryAllSort,
    querySortForPage,
    updateSort,
    updateSortProperty,

    createSupplier,
    deleteSupplier,
    getSupplierGenerateCode,
    getSupplierDetail,
    isSupplierExist,
    querySupplierForPage,
    updateSupplier,

    createStorage,
    deleteStorage,
    getStorageGenerateCode,
    getStorageDetail,
    isStorageExist,
    queryAllStorage,
    queryStorageForPage,
    updateStorage,

    createDevice,
    deleteDevice,
    getDeviceDetail,
    getDeviceGenerateCode,
    getDeviceSortPropertyDetail,
    isDeviceExist,
    queryDeviceForPage,
    updateDevice,

    getMyStartFlow,
    getWaitMeToDo,
    getMyParticipant,
    getFlowDetail,
    
    createAssets,
    deleteAssets,
    getAssetsDetail,
    getAssetsGenerateCode,
    isAssetsExist,
    queryAssetsForPage,
    updateAssets,

    completeFlow,
    createApplyInternet,
    queryDefinitionProcess,
    queryCreatedProcess,
    deleteModel,
    deployCreatedProcess,
    deleteDeployment,
    getAllFlowType,
    createFlowForm,
    queryForPageFlowForm,
    queryDetailFlowForm,
    updateApplyForm
}